package com.edu.edumanager.service;

import com.edu.edumanager.vo.EduCourseInfo;
import com.edu.edumanager.vo.EduCourseVo;
import com.edu.edumanager.vo.EduResult;
import org.springframework.stereotype.Service;

/**
 * @program: edu-manager
 * @description:
 * @author: Jaime
 * @create: 2021-08-18 14:14
 **/
public interface CourseService {
    /**
     * 增加新课程
     * @param courseInfo
     * @return 新增加的课程id
     */
    int addCourse(EduCourseInfo courseInfo);

    /**
     * 回查课程信息
     * @param courseId
     * @return
     */
    EduCourseInfo findCourseInfoById(Integer courseId);

    /**
     * 修改course信息
     * @param courseInfo
     * @return
     */
    int updateCourseInfo(EduCourseInfo courseInfo);

    EduCourseVo getCourseTeacher(Integer courseId);

    int publishCourse(Integer courseId);

    /**
     * 分页查询
     * @param currentPage
     * @param limit
     * @return
     */
    EduResult conditionsQuery(Integer currentPage, Integer limit);

    /**
     *删除对应courseId
     * @param courseId
     * @return
     */
    int deleteCourse(Integer courseId);
}
